package top.greatxiaozou.abstractFactorPattern;

public class ShapeFactor extends AbsractFactor {

    @Override
    public Color getColor(String color) {
        return null;
    }

    @Override
    public Shape getShape(String shape) {
        switch (shape){
            case "circle":
                return new Circle();

            case "rectangle":
                return new Rectangle();

            case "square":
                return new Square();
            default:return null;
        }
    }
}
